<?php

namespace App\Models\User;

use App\Models\Common\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class MemberOrder extends CommonModel {

    use HasFactory;

    protected $table = 'member_order';

    public function getUser() {
        return $this->hasOne(User::class,'id','user_id');
    }

    public function getLst(array $conditions=[]) {
        $records = parent::getLst($conditions);

        $records = $records->where('is_finished',1);
        return $records;

    }



}
